﻿using System;
using System.ComponentModel;
using System.Linq;
using ProjectEuler.Linq;

namespace ProjectEuler.Problems
{
    [EulerProblem(1, 233168)]
    [Description("Add all the natural numbers below one thousand that are multiples of 3 or 5.")]
    internal sealed class Problem001 : EulerProblem
    {
        public override Object Solve()
        {
            return (1).To(999)
                .Where(Numeric.IsMultipleOfAny(3, 5))
                .Sum();
        }
    }
}
